package cn.edu.lcu.cs.javaprogramming.oop.animal;


/**
 * 狼
 *
 * 2022/3/2 22:18
 *
 * @Author ling
 */
public class Wolf extends Mammal {

    public Wolf() {
        setSpeciesName("狼");
    }

    @Override
    public void reproduce() {
        System.out.println("狼是胎生的。");
    }

    public void walk() {
        System.out.println("狼会走路");
    }

    public void run() {
        System.out.println("狼跑得飞快");
    }

    @Override
    public void eat() {
        System.out.println("狼吃羊");
    }

}
